package com.liuwei.msmall.common.constant;

/**
 * @Classname ProductConstant
 * @Date 2021/4/10 5:15 下午
 * @Created by llww
 */
public class ProductConstant {

    public enum AttrEnum{
        ATTR_TYPE_BASE(1,"基本属性"),ATTR_TYPE_SALE(0,"销售属性");

        private Integer code;
        private String attrName;

        AttrEnum(Integer code,String attrName){
            this.attrName=attrName;
            this.code=code;
        }

        public Integer getCode() {
            return code;
        }

        public String getAttrName() {
            return attrName;
        }
    }

    public enum StatusEnum{
        STATUS_UP(1,"商品上架"),STATUS_DOWN(0,"商品下架"),STATUS_NEW(2,"新建商品");

        private Integer code;
        private String status;

        StatusEnum(Integer code,String status){
            this.status=status;
            this.code=code;
        }

        public Integer getCode() {
            return code;
        }

        public String getStatus() {
            return status;
        }
    }


}
